<?php
/**
 * 关于我们model
 * @author 王涛
 * @DataTime 2018-08-02T08:46:15+0800
 */
namespace app\api\model;
use think\Model;
class AboutModel extends Model{
    protected $table = 'orange_about';
    protected function initialize()
    {
        parent::initialize();
        //TODO:自定义的初始化
    }
    public function aboutInfo()
    {
        return $this->select();
    }
    /**
     * 修改关于我们
     * @author 王涛
     * @DataTime 2018-08-02T13:51:35+0800
     * @param    [type]                   $addarray [传入的参数属组]
     * @return   [type]                             [返回布尔值]
     */
    public function editAbout($addarray){
        $reslt = $this
                 ->where('status', 'NEQ', 9)
                 ->where('id', 1)
                 ->update($addarray);
        return $reslt;
    }
}
